package cn.haoxsf.app.system.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 基本费用表
 * </p>
 *
 * @author Ele  qvbanfm@qq.com
 * @since 2020-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_cost")
public class Cost implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 费用名称
     */
    @JsonIgnore
    private String costName;

    /**
     * 费用
     */
    @JsonSerialize(using=ToStringSerializer.class)
    private BigDecimal cost;

    /**
     * 故障类目id
     */
    @JsonIgnore
    private String faultCategoryId;

    /**
     * 创建数据
     */
    @JsonIgnore
    private Date createTime;

    /**
     * 状态
     */
    @JsonIgnore
    private String costState;

    /**
     * 修改时间
     */
    @JsonIgnore
    private Date updateTime;

    /**
     * 创建者
     */
    @JsonIgnore
    private Long createAdminId;

    /**
     * 修改者
     */
    @JsonIgnore
    private Long updateAdminId;


}
